package com.xczl.book.entity;

import java.util.Date;

/**
 * 用户实体类
 * 
 * @author Administrator
 *
 */
public class Borrow {

	public final static long BORROW_LIMIT = 1000 * 60 * 60 * 24 * 5;

	public final static int STATE_RESERVE = 0;
	public final static int STATE_ING = 1;
	public final static int STATE_REVERT = 2;

	/**
	 * 主键
	 */
	private Integer borrowId;

	/**
	 * 外键
	 */
	private Integer bookId;

	/**
	 * 外键
	 */
	private Integer userId;

	/**
	 * 借阅时间
	 */
	private Date borrowTime;

	/**
	 * 归还时间
	 */
	private Date returnTime;

	/**
	 * 状态
	 */
	private Integer state;

	public Integer getBorrowId() {
		return borrowId;
	}

	public void setBorrowId(Integer borrowId) {
		this.borrowId = borrowId;
	}

	public Integer getBookId() {
		return bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Date getBorrowTime() {
		return borrowTime;
	}

	public void setBorrowTime(Date borrowTime) {
		this.borrowTime = borrowTime;
	}

	public Date getReturnTime() {
		return returnTime;
	}

	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
}
